Ext.define('BEST.view.roleoper.Tree',{
    extend:'Ext.tree.Panel',
    alias: 'widget.roleopertree',
    region:'center',
    xtype: 'check-tree',
    requires: [
               'Ext.data.TreeStore'
           ],
    rootVisible: true,
    useArrows: true,
    frame: true,
    title: '角色权限列表',
    width: 250,
    height: 300,
    initComponent:function(){
        Ext.apply(this,{
        	store: new Ext.data.TreeStore({
        		autoLoad:false,
        		root: {
        			text: "模块权限",
        		    expanded : false
        		},
                proxy: {
                    type: 'ajax',
                    url: mainServer+'/menu/oper/1',
                    reader : {
    					type : 'json',
    					totalProperty : 'total',
    					successProperty : 'success'
    				}
                }
            }),
        	
            html:'加载用户权限'
        });
        this.callParent();
    }
});